import java.util.Scanner;

public class Count {
    public static void main(String[] args) {
        System.out.println("请输入一句话：");
        Scanner a = new Scanner(System.in);
        String b = a.nextLine();
        int c=0,d=0,e=0,f=0;
        for (int i = 0;i<b.length();i++) {

            if (b.charAt(i)<='9'&&b.charAt(i)>='0'){
                c++;
            }
            else if (b.charAt(i)<='z'&&b.charAt(i)>='a'){
                d++;
            }
            else if (b.charAt(i)<='Z'&&b.charAt(i)>='A'){
                e++;
            }else{
                f++;
            }
        }
        System.out.println("本次句子长度是"+b.length()+"\n数字："+c+"\n小写字母："+d+"\n大写字母："+e+"\n其他字符："+f);
    }
}
